Serilaize and de seriliaze a binary tree.