3.10 Tail-recursive foldLeft