aproximate xterm256 O(1) quantizing algorithm that's still rough around edges