a brief implemention of lock-free queue