Add hash map implementation (leaks problems)
Fix leaks issues with hash map