Add buildNetwork() method

which creates nodes representing features, hypotheses and calls method
calculating base CPTs for those nodes.
Fix reading new model from input data port.