Moved tree object array into unique class to enable search