Efficient Optimization Algorithms for Nonconvex Machine Learning Problems