Exercise 5 Kd-Trees