Visuo-Motor Primitives as a Basis for Learning by Imitation