added SentenceLength algorithm