Extract z-ordering
Build predictor as a matrix