Added the new algorithm that involves priority pushing