Define filtered accumulate. [1.33]
Merge branch 'ex1.33'