building a basic tree data structure and using it for some fun algorithm practice