Mathematical Methods in the Theory of Queueing