BST: change serialization format
Add partial red-black tree implementation