Fixed issue in dist with non-square input matrices