Reads Latin squares from a file and outputs the line number of the valid ones, optionally concurrently.