It does not seem to seg fault anymore. I removed the bug where
I overdeleted (did delete [] instead of delete)

Also, fixed a few other of the memory leaks.

It still has some memory leaks, notably in the addConn method.