nominal_to_int function

Turn nominal (factor) data to integers, keep original levels with a key of correct responses alongside