Automatic Registration and Convex Clustering of Time Series