Robots learn new way to navigate with animal brain-inspired system