Binary trees worksteaing implementation