Modified indexing on gcdCuda.cu