Broken point pruning algorithm