created vector for sentence lengths