removing second matrix; rotating in place