Essays On Improving Patient Flow In Hospitals