Parity

Add parity wrapping to ruby lib.

see issue #11