n_queens: refactor: use of optional parameters on main function