Add modular-arithmetic haskell library