Added single linkage and complete linkage clustering algorithm