adding initial version of mcf algorithms stuff