partial implementation of gpu search
gpu search now works