Added initial swap allocator code, doesn't handle read/write yet