Added greaterThan and lessThan methods

Initial version. These need fixing due to unexpected/incorrect results.