Added ultrasonic code for sorting an array and picking the largest value