draft implementation of malloc and free