Added support for cudamemcheck.
Added asserts. Removed output.
Commented out prints.
Inserted mem alloc checks.
Removed bug where not enough edges were sent to gpu.