Added printing balanced parenthesis algorithm