added utility functions to convert an array to a linked list and an assoc array to a linked list of pairs
fixed by reversing the input array first
fixed call to head and added test for arrayToLinkedList
fixed call to head and added test for arrayToLinkedList
refactor to put the array in a temp var then reverse, fixed by adding true to preserve the order of keys
added test for assocArrayToLinkedList