bit of work on hand written memory allocator