find_min's optimizing