add affine cipher
add support code in haskell for modPow, fix export from fpa