Strange sea worms have butts that grow a brain before wriggling off to find a mate