Built function that prints out tree of permuations