this c++ code can do sequence mining