an implementation of a linked list, with testing.