queens problem
inversions added