Deep SVM for classification