A Hybrid Markov Model for Accurate Memory Reference Generation