Fix process tree generation wrongly attaching node to root
Add code for dynamic sorting
Simplify stat collecting for process tree
Initial tree display with curses frontend