length method for LinearDiscriminant