added an items() method that returns 2-tuples containing each element in the structure and its root
added tests for items() method