public int Search(double value)
        {
            DoublyLinkedListNode temp = this.head;
            int pointer = 0;

            while (temp.getValue() != value)
            {
                temp = temp.getNext();
                pointer++;
            }
            return(pointer);
        }
        public double Return(int index)
        {
            if (index >= this.count)
            {
                throw new Exception("Exception: there is no such element in linked list");
            }
            DoublyLinkedListNode temp = this.head;
            int pointer = 0;

            while (pointer != index)
            {
                temp = temp.getNext();
                pointer++;
            }
            return(temp.getValue());
        }