split MinuitBetweenPaths into 2 variants, with MinuitBetweenPaths being kept as a base class