Implement linked list passing all tests