Finding exact covers in NumPy (and solving Sudoku!)