Simulate Uniform(0,1) from random bits | Google Coding Question