1. Move FunctionSample to its own .h/.cc files. 2. Migrate LineSearchFunction::Evaluate to use FunctionSample for input and output. Change-Id: I8bfb97e1900d95a4686c9621dda5b584458b45c0