add ddfKmeans method in ddf-R

all the commit are integrated in the PR "fix Head bug", thanks.