Fenwick Tree Construction