d3d bisecting help needed