Optimization of heat sinks in a range of configurations