Fast k nearest neighbor search using GPU