Learning of gestures by imitation A probabilistic approach based on dynamical systems