Optimum networks for heat exchange