Fixed SegFault due to out of bound array indexing
Enabled Edge Index, and Malloc Gaurds in Debug mode to make it easier to
find memory issues