Add lower and upper functions.

Reviewed-by: robert.macomber@socrata.com