Modern Statistical Methods for Optimization and Change-point Detection