Honour "replicates" option (bug #43959) * kmeans.m: take the best "replicates" clusterings, for Matlab compatibility.