update binary_indexed_tree