Hash Table Implementation with Memmory Allocation