Added function to eliminate unreachable states from conditional probability tables (CPT). gRain throws an error, if such states exist in the CPTs.