Heatpipes with buffer tanks