My own version of malloc() using nodes as main data structure