Reduced cyclomatic complexity of stack/pico_tree.c