Putting my SVM implementation in for reference.