Subspace Methods for Nonlinear Optimization