Dynamic Queue Management for Hospital Emergency Room Services