Heating or cooling apparatus ; Heat insulating devices {with provision for submitting samples to a predetermined sequence of different temperatures, e.g. for treating nucleic acid samples }