Fix - corrected boundary of index in loop.
Code cleaning in dfs.cpp.
Version on which tests are conducted
Version on which tests are conducted