Added comments to word-break-ii.cpp, improved codes