Improved the similarity matrix computation by using sparse matrices, pandas