Algorithm to solve Picross-like games.