This is what I tried but the behavior of the code between C and C++ are completely different while the data inputs are the same.  I have to say that I am kind of lost concerning this issue forcing me and project partners to stick to 0.4.1.