Materials:  Group all indices and vertices per material.

Currently indices were stored per material, and vertices when just one global
buffer, however,  this global buffer for big obj file could not be loaded onto
the gpu memory.  Now The vertices are cut up into groups of vertices used per
material.