Added some more functionalities for ArrayUtil and TreeUtil