add solution with golden section method