longgest paren reimpl