Recursive division algorithm among other edits