sortedSearch: simplified metaret calls (dropped all parameters). Also improved the worse case, introducing imax and jmin.