Adding non recursive implementations for pre, in and post order tree traversals