Stochastic Complexity and Its Applications