Java implementation of a Sudoku solver