Calculator, that works with different precedences of operators.