Ported most of the memblock lib, save for the find methods (which I need to port array find methods).