Linkedlist reverse initial implementation.