improve -cifti-resample memory and IO usage for ROW direction