added program for calling local functions on the GPU using __device__