initial checkin of kd-tree