A solver for the griddler/nonogram puzzles