cpu: Fixed limitation to detection of contigous LAYOUT.
cpu: Fixed limitation to detection of contigous LAYOUT.

The previous code only determined CONTIGUOUS LAYOUT of operands of up to rank 3.
This is now replaced with code that detects CONTIGIOUS LAYOUT of operands of rank N.

bh107/bohrium,madsbk/bohrium,madsbk/bohrium,bh107/bohrium,madsbk/bohrium,madsbk/bohrium,bh107/bohrium,bh107/bohrium