working on BinaryTreeSerialize