This function is part of the hierarchical clusterization method. The function calculates the
final distance between cluster1 and cluster2 applying the approach definition, using the distance type given.
approach indicates the algorithm used to get the value. distance indicates the distance used to get the value. Possible values: 'MAX',
'MIN', 'AVG'.