Distribution Theory of Runs and Patterns and Its Applications: A Finite Markov Chain Imbedding Approach