Explicit list implementation of malloc and free