revise the ranking function, consiter the None data in the score dictionary
as revised
revise the function, add the raning and selecting functions into the new function
rename it to the prep_matrix.py