http://www.nxcoding.com/archives/leetcode-daily-2502-memory-allocator-design