Update and rename modinv.cpp to invmod.cpp