added Iterator pattern interfaces
added implementation of the Iterator pattern and fixed linkedListToArray function
added test case for linkedListToArray function