Lockless allocator, derived from http://locklessinc.com/