Nelder-Mead optimization heuristic in Go