Hoeffding's Inequality for General Markov Chains and Its Applications to Statistical Learning