Time and Memory Comparison of Parallel K-Nearest Neighbor Algorithms on GPUs