crsa ml hw6 svm find all indices of strings in list