Improved efficiency of shifting row data 'up' or 'down'