Grid Clustering method, not sure if its time complexity is so great...