An Automatic Feature Extraction Technique for 2D Punch Shapes