Describir: Block-Diagonal Forms of Distance Matrices for Partition Based Image Retrieval