removed a bug which computed a wrong length of each subSequence