added linked-list iterator, improved avltrees

Added an iterator over linked-lists. Added a function for directly adding a
reference to an AVL tree as both the key and value.