the buddy and slub algorithm from linux kernel