Introduction to Optimization Methods and Their Application in Statistics.