Effect of Markov and non-Markov classical noise on entanglement dynamics