_cmp as core function for comparisons, added gt/lt/ge/le
added some tests
updated package.json