cpp implementation of Word Break II

It seems that there's a little bug that I haven't found yet