Towards a tool for forward and reverse mode source to source transformation in C + +