Tried some not-so-smart stuff

it takes now ages to construct the tree