completed and succeessfully tested initial version of matching vertex to triangle data