A simple implementaion of  K-Menas