Debugged vertex cover solution. Added check to prevent double processing
over edges.