Fixed a bug that added elements to quadtree nodes that had leaves. The test in the main has also been improved adding another quadtree case with a different limit number of elements per node.