You could have invented Fenwick trees - Yorgey, Brent (Journal of Functional Programming)