Write a C++ program which reads lines from "algebra.txt" until EOF. For each line, insert the characters into a binary tree. Traverse the binary tree using pre-order and append the results to a file named "prefix.txt". Traverse the binary tree using post-order and append the results to a file named "postfix.txt".