Add not operator, closes #39.

With tests.