Changed Liberty and eat to BFS from DFS. Significant performance increase