Fast nonbinary arithmetic

Fredrik Johansson: Fast nonbinary arithmetic