linked list exercise, has indexing, insert and delete method. delete method incomplete