Corrected the multiple parentheses parsing algorithm so it doesn't need lookahead.