Add value_at(idx) function to circular buffers