Implement rater_quality(rater1, rater2, picked_first) to score human (or model) raters and a pairwise judge.
rater1 and rater2 are 1-D integer label arrays of equal length (n\ge 1). Classes are all integers that appear in either array.
picked_first is a 1-D array of bits of length (m\ge 1), where (1) means a pairwise judge chose the completion shown in the first slot (display order randomized). (p_{\mathrm{first}}) is the mean of picked_first. Position bias is (p_{\mathrm{first}}-1/2).
Return a dictionary with percent_agreement, cohens_kappa, p_first, and position_bias, each rounded to 4 decimal places.