added a setRow function and corresponding test
fixed reversed row/col order in getRow/getCol
fixed copy function and added test