Motion Compression using Principal Geodesics Analysis