Added support for converting any tree to a binary tree