Add basic sorting average case program