Hoeffding's lemma for Markov Chains and its applications to statistical learning