Use recursion in categorizeSampleStack so that we can cache results for partial stacks.
Use recursion in categorizeSampleStack so that we can cache results for partial stacks.

devtools-html/perf.html,squarewave/bhr.html,squarewave/bhr.html,devtools-html/perf.html,mstange/cleopatra,mstange/cleopatra