add include<unistd.h> for using access()
assert model dimension >= 2
Use conditional prabability instead of exact prabability
test
Use conditional probability instead of exact probability.