Finished Part A (Sobel Algorithm)