removed string.h cause of too much possible memory leaks/faults
replaced memset by std::fill cause of removing string.h