Memory effects in a Markov chain dephasing channel