Add file to plot 3D histogram of color.
Edit functions to optimize the time of execution of the algorithm. Improvement on time for one instance: before 15min, now < 2sec