fix bug in k-d tree pruning, move successortilemodel to a different file