Modified some codes, moved Node out from TOMTree