rename subvertices to queued, and move it to util.cuh

an additional serial verison is added