Ported PhraseMatchDetector, moved unit tests.
Added minimal port of VariantGraphRanking class.