Riemannian Time Warping: Multiple Sequence Alignment in Curved Spaces