add k-nearest-neighbors classifier