BanditPAM: Almost Linear Time k-Medoids Clustering via Multi-Armed Bandits Mo Tiwari