3D vectorspace aligner: implemented handling of repeated tokens.