Added a multi threaded and optimized algorithm to remove the background/shading from grayscale images. Runs in O(c) per pixel.