added remove method to linked lists