An implementation of Fenwick trees (Fenwick 1994).
Data structures, either not present in standard Python libs or are asymptotically more efficient