What is the fastest way to convert a 2D memory allocation to a 1D vector? Right now, I am using nested loops to do it by referring each value at a time. Would it be possible use