added fixed size local arrays to __global__ functions for storing values on registers