Discovering Shape Classes using Tree Edit-Distance and Pairwise Clustering