Effects of Distance between Classes and Training Dataset Size on Imbalance Datasets