this is the adt of double queue