Add array transformation to cpu