Move function build_full_binary_tree to production code