A custom malloc() function implemented using the buddy allocation algorithm