updated to obtain multichotomous nj trees