Mechanism Design For Distance Metric Learning