Classification with segmentation for credit scoring and bankruptcy prediction