add Ritchie and Kernighan's malloc implementation