By using radix instead of patricia, program is 4 times faster than before!