An K-Means II algorithm implementation