Better pseudocode for Carmack compression.