nqueens

refactor diagonal checking

add maven jdk compiler version