Added generation of sets, and SVM learning.