nqueens

refactoring
added junit tests