Non-hierarchical clustering with masloc