Implementation of the Sobel Filter in C