Tweak the implementation for a while. Tried to use integer significant bits as queue head but eventually rolled back the change.