[Doug Lea's malloc implementation](https://gist.github.com/mkrupczak3/7e09b80751c0175ab606067d065fce92)