Test function is quadratic. lineSearch does golden section, but does not perform bracketing.