Algorithm for solving crossword japonaise