Exploiting Prior Knowledge in Robot Motion Skills Learning