Update and rename sortbypointers.c to sortbypointers.cpp

No pass by reference in C, changing to C++