A function to assign a rank to the data
ranks = rank_data(data)
a vector of data to be ranked
a vector containing the rank scores