Binary indexed tree also known as Fenwick tree