Realtime CPU sphere raycaster using kd-tree