database programs arent free. hash tables are :P
And you didnt use the average entry size. you used 1/2 the maximum size :P