Optimal Chernoff and Hoeffding Bounds for Finite State Markov Chains