Fixed memstat taking in any parameters, made print function in tree.c
and made the tree in purple_malloc instead of main.c