Optimization methods in massive data sets