8 Queen problem solutiion optimization