Added GPU kernel 9

Kernel 9 is faster than 8 and simpler. The two kernels used in kernel 8
have been combined into one kernel through use of a for loop. This also
opens up the possibility of using shared memory.