Updated CogPar mathematical expression parser