Dirty implementation of fuzzy c-means