Add function to calculate probability of losing at least d blocks, doesn't work yet.