OpenCL implementation of k-nearest neighbors algorithm for GPUs