packed serial code working for depth =1

square matricies depth = 1 size must be even