Adding average and fixing solveNQueensXTimes