Text this: Similarity Measure Learning in Closed-Form Solution for Image Classification