Vector space algorithm: transposition handling improvements.