implemented linked list; basic list testing also for linked list