Chi-Squared Distance Metric Learning for Histogram Data