now multiple interval minimization possible with Golden section & newton ramphson