simple queue implementation without locks, step 1