C++ implementation of Gradient Vector Flow