Implemented structure and dumy depth-first search