CUDA kernel of Sauvola's Algorithm