ai=array[int] Search=proc (a:ai,x:int) returns (int) % logaritmikus keres‚s low:int := ai$low(a) high:int := ai$high(a) while (low<=high) do mid:int := (low+high)/2 val:int := a[mid] if x