getCat function

Categorize (semi-)continuous variables