Added notes to the backpropagation routine training.cpp. Removed alloc calls and replaced them with 'new' and 'delete' operations.