Implemented discreteSplit