added implementation of Fenwick Tree