Calculate Sobel with optimization change variable from double to float use shared memory to reduce global memory access