finished question 2.5, and added a addToHead function to LinkedListNode class