Implement index buffer.