Researchers build autonomous AI worm that can reason and adapt