update fenwick tree