Fixed bug where vertexID was being used instead of zero

getBounds() function would not work when specifying numVertices that is smaller or equal to vertexID. This was because vertexId was being used incorrectly in the for loops. Zero should have been used instead