solver for nonogram puzzles