getConditional function

getConditional: a function for obtaining the coditional probability tables based on a given evidence.