Added C++ code.
Added Screenshots of Valgrind errors
Ammended C/C++ code with malloc and calloc preproccessor flags and code.
Fixed valgrind memory leak and errors. Calloc works! Also it is as fast now. Because I'm stupid and declared too much calloc memory!