Do trajectory optimization for the learned demonstrations. Add initial implementation of MultipleDemosPoseTrajectoryTransferer