ics lab6 for the implementation of malloc