Update student_func.cu

scan function with 'double' shared arrays--to avoid read/write conflicts. The shared arrays are implemented as one shared array that is twice as long as the input histogram array, hence two arrays.