kdTree: Bute force implementation, kdTree implementation start