Searching for Bayesian Network Structures in the Space of Restricted Acyclic Partially Directed Graphs