Learning Compact Representations for Efficient Whole Slide Image Search in Computational Pathology