Fixed major error in distance matrix: in loop on bands the matrix was regenerated at each cicle. Prevoius result were lost.