Fixes segmentation fault.

Rather than initializing en-mass, use reserve/push_back to efficiently
grow m_edges.

Crash was occuring on Mac OSX 10.9.5 both from source and with pip.
Fix memory leak in Cython code.