malloc and free optimization algorithms and data structures 6237414