Queueing Theory and Diffusion Approximation with their Applications