speedup self_describing_numbers