UVa Problem 10360 - Added buggy KD tree