retract is updated for removing all fact handles outside the DRL

retract updated for PQ

retract is updated with PQ

PQ

minor optimization for PQ