Fixed algorithm bug, lower performance...
Trying to build DCPT, currently very bad impl.