Perl 6 kdTree implementation