A Short Introduction to Ergodic Theory and Its Applications