completed deserialization func for BinTree
completed serialization func for BinTree
refactor for BinTree