Learning the Structure of Probabilistic Graphical Models with an Extended Cascading Indian Buffet Process