categorize function

Categorize continuous values