Updated the binary-tree with ml style ref