Implement queue and stack data structures