changing and identifier to make its purpose and meaning clearer
range-based for-loop to make 'IRV()' more readible
reversing a for-loop's direction; output is expected to change compared to before this patch