Hash Table and Random Samples

added code about using hash table to store data collected from Mysql database in memory for much higher IO speed and added code about how to create the IoT ID samples