added some statistical tests for randomness of bit streams