SMS dit: Novel Optimization Methods for Temporal and Predictive Clustering