Adding greaterThan and lessThan rules

Added greaterThan and lessThan rules, along with tests.