Refactor cpu index buffers to C++11 functionality