Update function mergeVertices() in Geometry.js

This function first merge close vertices and then remove faces which has more than 2 vertices that are the same after merging. It stores all faces that need be removed in an array but it removes the array index rather than the content in the array. This is a serious bug since it breaks the 3D model.