added downhill simplex function to felixrefine, function is not yet called