Added a traverse() method which stores all tree labels in postorder in an ArrayList.