Update BinaryIndexedMatrix