Fixing the loop in KDTree insert to be able to move forward while inserting.
Improving the insert in KDTree.
Fixing the Node.rect calculation and accordingly drawing in KDTree.
Fixing the insertion issue and range() not checking the root and fixing the nearest in KDTree.