Finish anonymize fuction

todo: debug information gain fuction