refactored radix find function