Added assert to protect radix and set and thus fixed #21.