decipherment with row and column constraints