Hiring and Firing with Labor Market Frictions