Writing merge sort for opencl keypoints