Add foldRight method.