Setting up solution for vertex cover problem