Expose comparison functions, fixes #112
Merge pull request #116 from tgriesser/cmp

Expose comparison functions, fixes #112