Implemented next_point in CUDA.