Rankhospital and update column assignment

Add rankhospital function. Did not factor out commonality with with
best function in order to simplify submission for grading.