Added binary tree serialization & deserialization algorithm