The K nearest neighbor method classifies a data