added switchRow for Matrix

Signed-off-by: Andrew Porter <mephisto83@hotmail.com>