solved Ex 3.21
implemented insertion of dequeue in Ex 3.23
implemented delete of dequeue in Ex 3.23