Heat diffusion, the structure of space and the Poincaré conjecture