NF: change make_cost_thresh_array to return a record array for added clarity