stateRemoval function

stateRemoval: a function for processing the bayesian network.