Adding smatrix

SQL query computing a similarity matrix between two document-term
matrices.
Symmetry breaking

A condition to avoid redundant calculations