Added foldLeft and foldRight utilities