Updated Similarity Matrix

Updated the SQL that creates the similarity matrix to only
include the docids in question. Greatly increased the
speed of the query.

[Assignment: 2 Problem: h]