add row scheduling algorithm