Uncertainty-based Feature Learning for Skin Lesion Matching using a High Order MRF Optimization Framework