Implemented rankHospital.R