Added function to set criterias of the hierarchical model and finished the familiarity weigths calculation.
Signed-off-by: Paulo Hack <ph_hack@hotmail.com>