Dequeue completed for Structures
version 2.0 completed without edge cases