Modinv implemented with extended euclidean algorithm
Merge branch 'master' of github.com:cosmosgenius/math_algos