Application of Queuing Theory in Hospitals