added a simplex optimizer borrowed from a different library. This will work in serial mode.