Get allocation function

The function can reserve some size of memory from the current allocation.
Added debug function for monitoring current table record state. Some
another small fixes