CSC344 Assignment 3: Simplifies arithmetic expressions using a tree structure.