Added random order generator
DFS improvements