finalize interface for pairwise likelihood generation and for counting relations
implementation for countRelations
implementation for computePairwise