Changed Matrix.swapRows, extractRows & Duplicate from traditional element-by-element copying to memory copying