naCompare function

Compare values using <, <=, >, >=, !=, and == (robust to NAs)