Implementation of malloc (malloclab from CMU's 15-213)