Implementation of malloc using segregated lists