Serialize and Deserialize Binary Tree