updated orienteering algorithm