Sorting and grading peanuts