http://blogs.msdn.com/vcblog/archive/2008/08/28/the-mallocator.aspx
간단한 구현. 복잡하게 만들면 한도끝도 없지만 저정도만 알아둬도 충분할듯. 필요한건 다 구현했다.