program to make k clusters out of N points