added printFactors method to uai14.cpp and BPinterface.cpp