Implement full search on CUDA. Not working yet.