Analysis of temporal correlation in heart rate variability through maximum entropy principle in a minimal pairwise glassy model