radix2 snippet