Motion Segmentation and Balancing for a Biped Robot's Imitation Learning | Synapse