Learning dance moves could help humanoid robots work better with humans