added BFcompare to Rcode