Support for Functions s(), lo()

USAGE:

gam.match(x) 

This is support for the functions s() and lo(). It is not intended to be called directly by users.