add cpp code of SGD_hinge.m