extend svm nb
revamp structure, add math
cleanups
add example
Merge pull request #2318 from Saurabh7/svmnb

extend svm nb