Added new similarity/factorization algorithm