Added ROOT6 compatibility

I've re-implemented the fit with the new ROOT6 fit class: ROOT::Math::Minimizer