allocates storage for
tree
*ptree = avail ( );