DC approach to weakly convex optimization and nonconvex quadratic optimization problems. (1st February 2018)