Limited LDA subspace dimension to not exceed input dimension (fixed #134).