added foldLeft impl in terms of foldRight