Fixes to the BST implementation and Graph to use the stored data