public static void main(String[] args) {
    // TODO Auto-generated method stub
    SerializeandDeserializeBinaryTree result = new SerializeandDeserializeBinaryTree();
    TreeNode root = TreeNode.generateCBT(new int[] {1, 2, 3, 4, 5, 6});
    TreeNode.printCBT(root);
    //		String data = result.serialize(root);
    //		System.out.println(data);
    //		TreeNode newRoot = result.deserialize(data);
    //		TreeNode.printCBT(newRoot);

    String dataI = result.serializeI(root);
    System.out.println(dataI);
    TreeNode newRootI = result.deserializeI(dataI);
    TreeNode.printCBT(newRootI);
  }