Added highlighting ancestors
Fixed buildTree method
Separated graph building and graph drawing