Working on LR partitioning, implemented necessary methods in dfs tree class.