Adapting kd-trees for disk storage