Update math parser to exp4j to improve performance