High temperature latent heat thermal energy storage using heat pipes