added overload for creating binary trees