Solution for crossword puzzle implemented using Mathematica