public void InsertAfter(int valueToFind, int valueToInsert)
        {
            IncrementCount();

            var nodeToInsert = new SingleLinkedListNode(valueToInsert);
            var node         = Find(valueToFind);

            if (node == null)
            {
                throw new ArgumentException($"Unable to find a node with value '{valueToFind}' to insert after.");
            }

            nodeToInsert.Next = node.Next;
            node.Next         = nodeToInsert;
        }
        public void InsertLast(int value)
        {
            IncrementCount();

            var node = new SingleLinkedListNode(value);

            if (Head == null)
            {
                Tail = node;
                Head = Tail;
            }
            else
            {
                Tail.Next = node;
                Tail      = node;
            }
        }
        public void InsertFirst(int value)
        {
            IncrementCount();

            var node = new SingleLinkedListNode(value);

            if (Head == null)
            {
                Head = node;
                Tail = Head;
            }
            else
            {
                node.Next = Head;
                Head      = node;
            }
        }
        public void InsertBefore(int valueToFind, int valueToInsert)
        {
            IncrementCount();

            var nodeToInsert = new SingleLinkedListNode(valueToInsert);
            var current      = Head;
            var previous     = current;

            while (current != null)
            {
                if (current.Value == valueToFind)
                {
                    nodeToInsert.Next = current;
                    previous.Next     = nodeToInsert;
                    break;
                }

                previous = current;
                current  = current.Next;
            }
        }