FitBasis class to optimize contracted basis functions
Merge before recreating repos.

Signed-off-by: acappiello <acappiel@andrew.cmu.edu>