ExMAG: Learning of Maximally Ancestral Graphs