Refactoring to enable extending master and slave objects to handle different tasks
Refactors master code to move the mpi code into a super class
Adds slow min mut inf check which reads from file or std::cin