Refactored IndexBuffer to ext::IndexBuffer and added functionality