add longest valid parentheses solution