modified 2d heat function to get pochoir time for 20 samples