A program for solving nonograms