updated haskell version to use integers instead of rationals.  tremendously faster