reimplemented malloc header buffering