changed NW, added class distMatrixTest