added dynamic arrays
simple binary tree