Fixing bugs in CSMA implementation
-Typo using & instead of &&
-Improving random number generation:
--for generating small random numbers taking the LSB of standard rand()
results in almost deterministic series of numbers.
However, taking the MSB of rand() output solves the problem
---a function is provided for this purpose