implemented farthest first traversal k-center algorithm, need to confirm
the method to get distance between nodes