made quadtrees more generic. It now needs a clustering function and the node capacity can be set