C++ Implementation of "An O(ND) Difference Algorithm and Its Variations"