BinaryTree Serialization fix