udag2apag function

Last step of RFCI algorithm: Transform partially oriented graph into RFCI-PAG