Remove unecessary loop in vertex cover solution