Added random truth table generator for training sets