Representation and Reasoning about Shapes: Cognitive and Computational Studies in Visual Reasoning in Design