Extreme heatwave sampling and prediction with analog Markov chain and comparisons with deep learning