ADDED: code_radix//2 that choses a code based on radix notation and returns the chosen code in decimal.