Refactoring done, package domcolorclassifier.functions split into
functions.distance, functions.smooting and functions.weight