BinaryTree Serialization