Imitation and Reinforcement Learning - Practical Algorithms for Motor Primitive Learning in Robotics