lib: numbers: Add allocator and deallocator

The allocator and deallocator code are fairly simple, as they just
maintain a table of allocatable and allocated numbers.

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>