MATLAB codes to implement Reduced-Rank Local Metric Learning