merge IndexBuffer and VertexBuffer into ArrayBuffer