Consolidated constants into Node class and rearrange evaluate method for
efficiency. Avoid isInteger(), isVariable(), and isOperation() methods
when possible.