public bool Pop(out T output)
 {
     output = default(T);
     if (IsEmpty())
     {
         return(false);
     }
     output = stack.RemoveBeginning(); //Removes the top item from the stack
     count--;                          //Takes one from the size of the stack
     return(true);
 }
        public bool DeQueue(out T output)
        {
            output = default(T);

            if (IsEmpty())
            {
                return(false); //If false is returned the queue is emptied
            }

            output = queue.RemoveBeginning(); //Removes the oldest value of the queue
            count--;
            return(true);
        }