Fixed the segfault bug.
Changed some tests to add more points. Storing the depth of the tree in the QuadTree instance.