TEST: made distance matrix rectangular