Getting distance matrix and coressponding tress is done for original data