Finished quadratic implementation of sheehy sparse edge list