Vector Field K-Means Implementation