Update and rename outputdatearray.c to outputdatarray.cpp

The assignment has this filename. Also, pass by reference only exists in C++, so going to change all files to .cpp