Computational morphogenesis in architecture: the cost optimization of free form grid shells