started implementing a tree data structure