Trying to implement "malloc"