[FLINK-955] Implemented automatic resizing in CompactingHashTable

The CompactingHashTable now attempts to double the number of buckets if too many overflow buckets are used.
This commit also fixes a few bugs in the hash table.