Updating Stack, Queue functions