Added remove function to linked list