Change foldLeft and foldRight to be pimped methods.