added file rankhospital.R. Fixed a bug in best.R with invalid outcome
input.