Code for CS3214 project 4, implementing malloc functions.