Functional Norm Regularization for Margin-Based Ranking on Temporal Data