simulation of demosaic working

Most data ok, probably small mistakes in software equivalence, keep
testing