Programming by Cooperation: Perceptual-Motor Sequence Learning via Human-Robot Interaction