X and Y matrices generated for SVM