Implemented the shift_rows() method