Computes and prints the covariance matrix.
Writes the cluster tree as an output.