made search_point() non-recursive