stack example; parenthesis matching