cutInterval function

Cut a vector of numbers into interval factors.