modified some code, now shared memory access and global memory access run at roughly the same speed