Modules

calculate left - right values from depth (modified preorder tree traversal algorithm)