Moved all tree and graph data structures into single file