k-d Tree Splitting
sorted points in each dimension
- max spread is the max offx -ax an iy - ay.
- In the selected dimension themiddle point in the list splits the data.
- To build the sorted lists for the other dimensions scan the sortedlist adding each point to one of two sorted lists.