Concepts of Pattern Grading: Techniques for Manual and Computer Grading