Uploading latest process. Random segfaults in which OS is already deallocated are leading me into debugging my memory management now...but im stuck.