ADD: Implementation of a Fenwick tree (binary indexed tree)