I need a java library to simplify algebra. For example, if I input "x^2 + 2x.x", I need "3x^2" as an output. I do not want to evaluate it (like exp4j does), rather keep the output in algebra form. Any suggestion?