Fixed bug in Tree: Could not add elements in non extendable array