Added graph and tree classes