Made GA minimizer N-dimensional and cleaned it up more