MCNDFS Alg2 implementation: getting started. Modification of the main function.