A learning exercise, learning how to implement malloc.