Intermediate Representation in Model Based Recognition Using Straight Line and Ellipsoidal Arc Primitives