Stack and Queue benchmark