Wait-free Queues and Stacks with Polylogarithmic Step Complexity