Local Maximums Method For Optimization