Added classes about agglomerative nearest neigbor algorithm