#2261: corrected check if a split is useful, added a unit test class and added an elaborate comment on split quality calculation