Modern optimization algorithm matlab implementation