Algorithms for clustering and closest pair for the algorithms class, project 3.