Fixed bug in defining number of vertices to store vs number to compute.