Implement vectorized versions of score_data