Algorithm Development of a Multi-Section Crop Detection System for a Corn Head