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