distance matrices can now be passed

from class DistanceMatrix to class Form