Moved deque erase into unpack_row_and_rotate_buffer, changed process_row to take rowPadLength as input