Converted getIntersectionSimilarity to a static method; moved additional
misc inversions code to attic.