working parenthesis calculator