Update hashtbl

Clean up hash function
Add cleanup function
Add cleanup in test program
Update bitmaps
Update lifecount
Compiles but somehow bugged...