Level Crossing Methods in Stochastic Models