New malloc implemetation