Add more threshold operators.

Fixes #52.

@myronmarston is this ok?