Library for optimizing functions using Eigen