Implementation of k nearest neighbours algorithm using CUDA and C++