Matlab Codes for k means algorithm