Merge of grayscale only version and color version

- added grayscale test
- updated init_histograms  and change_n_pixel to adapt to the two cases
Ignore output.jpg