Completed search_far algorithm, divided the calibration part from the search