Simplex minimisation routine ported to D - from work (C) 1997 by Mike Hutt mikehutt.com