Unnecessary memory waste
Faster for large entropy vectors
Replaces clock with tictoc. Fixes #242
Removed strange test code