Efficient L-BFGS and OWL-QN Optimization in R