Added a function for testing insertion into the linear probing hash table.

Checks whether the insertion can go ahead and what memory consequences it would have. This allows the caller to prime the resize allocator if necessary.