An Optimization Approach to Improving Collections of Shape Maps