two things completely working gpu codes boththe shared memory and the global memory