Created MatrixComparator, used to compare distance matrix