Added comparison LR/SVM
Reorganized functions
Added NumType as an attibute of y