Comment fix (initial number of buckets was decreased to 4).
Fixed a pretty bad memory leak - basically not releasing the memory for elements that already exist in the table (i.e. keeping everything).
Minor improvements and fixes (int -> uint and so on).
Added function for debugging/profiling - prints basic hash table stats (min/max/stddev) and histogram.
Tweak when to do the resize - immediately when the threshold is reached, not waiting to accumulate 'nbucket' items more.
Disabled profiling by default. Including the profiling function only if needed.