Added recursive function assignTypes() to record the allowable site type per node in a given tree