A New Geometric Metric in the Space of Curves, and Applications to Tracking Deforming Objects by Prediction and Filtering