made unvisited set sparse, shaved a few more seconds off test 6