created a function for calulating vertex normals