Efficient Numerical Unconstrained Optimization for Embedded Systems