Optimization and Direct Design of Shape for Heat Transfer Problems