reverse a list with foldLeft