Implement depthOfCut