First pass on rankall and rankhospital. Added utils.R for sharing some common code