Correct return type and value for LocateMinima()