Implemented State pattern for the various traversal states that an expression tree can have.
Implemented Command Pattern