mod fenwick tree