Update and rename generateOrth.c to generateOrth.cpp