Extremely fast D version; uses different algorithm, so not included in benchmark.