Implemented Coin Flipping

http://en.wikipedia.org/wiki/Commitment_scheme#Coin_flipping