completed: ComputeAllSimilarityFactors.m