ncut function

Function to group a variable in intervals.