Added code for estimation via coin flips.