Optimization: Minimally working Conjugate Gradient, BFGS, and Newton minimizers