optimized profile_mendelian for trio processing