tree: fenwick binary indexed tree