You could have invented Fenwick trees | Hacker News Reader