Removed unnecesaary/redundant tempVerticesArray.