Motor Skill Learning for Humanoid Robots