Towards a Cognitive Humanoid Dancer