Uses POST-ORDER traversal, PRE-ORDER traversal, and IN-ORDER traversal to do various operations