First attempt at using shared memory on the GPU. Not currently functional