1. A method, comprising: decomposing a first shape into at least one subshape; identifying instances of said at least one subshape in a target shape; and determining if said first shape is present in said target shape based on said identifying.