Binary index tree.