set up debugging facility
incomplete solution, working on it, still has a bug
this was one of the bugs!
bug seems solved, now there is a bug in patch finding and finishing with one pixel
still the patch diff does not work properly
fix the diffpatch bug. It was all about CIE
finish, there still needs to be some cleanup
Merge branch 'debug'