Moved some common fuzzy set code to a new module.