Reduced complexity of pico_tree.c