updating prioritized sweeping