Fix hpcviewer#356 issue (double roots for callers and flat tree)
Before creating bottom-up and flat trees, we check if they are already created. If they did, then return the original tree.
Before creating bottom-up and flat trees, we check if they are already created. If they did, then return the original tree.