Added global variable for choosing which arithmetic module is called. Call geometric module by default.