more refactoring
more refactoring
more refactoring
more refactoring
golden search takes no constraints
rename class
swicth to iteration instead of recursion
take test out of class file