Changed grouping algorithm to store reference of vertex data to gorup instead of duplicating data to groups.