Efficient Methods For Large-Scale Empirical Risk Minimization