Learning a Behavioral Repertoire from Demonstrations