Made find_min_single_variable() a little more efficient.