Add fenwick tree