Added findOptimum linear