Nonograms solver