Recursive Implementation of Depth First Search Algorithm