Sobel operator. Fixed GrayScaleFilter.average to make it's member img thread safe. Added comments.
Needs to be fixed.