longest valid parentheses updated