slot allocator module

Reviewer: @harshsin

This module implements an efficient allocator for integers in the range [0, N).
We plan to use it to implement more efficient datastructures that use small
indices instead of pointers, and to improve iteration performance in other
areas.