Policy Search for Motor Primitives in Robotics