Algorithmic-level approximate tensorial svm using high-level synthesis on fpga