Not fully bug-fixed version of HashMap and Histogram