id3 classification implementation for discrete value lables