implement cuda versions for index operators
indexing operators work with CUDA, well they give out errors.