better multiradix code