Cleanup LinkedList<> backend algorithm code