Change the text parsing in the repl.

The problem is that if the user put something like (x+1)^(x+1), it would break
everything.  The way I have it integrated now allows for better tokenization
by adding a parenthese counter and making the functoin recursive.