Introduction to Unconstrained Optimization with R