static void Main(string[] args)
        {
            var doublyLinkedList = new DoublyLinkedList();

            doublyLinkedList.AddLast(1);
            doublyLinkedList.AddLast(2);
            doublyLinkedList.AddLast(3);



            Console.WriteLine(doublyLinkedList.Contains(2));
        }
        static void Main(string[] args)
        {
            var doublyLinkedList = new DoublyLinkedList <string>();

            doublyLinkedList.AddLast("asad");
            doublyLinkedList.AddLast("123124asd");
            doublyLinkedList.AddLast("are1241");



            Console.WriteLine(doublyLinkedList.Contains("asad"));
        }