This code finds all possible k-clusters, which are convex, and select the minimum one with minimal inter cluster function