Add row scheduling algorithm