Improvements to the subsumption algorithm (now using references)
Added in priority update logic for the subsumption