Finished grayscale histogram equalization