Imitative Learning Mechanisms in Robots and Humans