Mountain climbing algorithm (numerical algorithm)