Color distances for RGB color space
Edge preserving smoothing procedure

* It is taking too much time
Some attempts to improve the performance

* It was not sufficient, maybe using arrays is a better approach.