#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e18;
const long long MOD = 998244353;
vector<string> vec_splitter(string s) {
  s += ',';
  vector<string> res;
  while (!s.empty()) {
    res.push_back(s.substr(0, s.find(',')));
    s = s.substr(s.find(',') + 1);
  }
  return res;
}
void debug_out(vector<string> __attribute__((unused)) args,
               __attribute__((unused)) int idx,
               __attribute__((unused)) int LINE_NUM) {
  cerr << endl;
}
template <typename Head, typename... Tail>
void debug_out(vector<string> args, int idx, int LINE_NUM, Head H, Tail... T) {
  if (idx > 0)
    cerr << ", ";
  else
    cerr << "Line(" << LINE_NUM << ") ";
  stringstream ss;
  ss << H;
  cerr << args[idx] << " = " << ss.str();
  debug_out(args, idx + 1, LINE_NUM, T...);
}
int32_t main() {
  ios::sync_with_stdio(!cin.tie(NULL));
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    n = 2 * n;
    vector<int> arr(n);
    vector<int> res;
    for (int i = 0; i < n; i++) cin >> arr[i];
    bool state = true;
    for (int i = 0; i < n; i++) {
      int cnt = 0, cur = i;
      while (cur < n and arr[cur] <= arr[i]) cur++, cnt++;
      state &= (cnt > (n / 2));
      res.push_back(cnt);
      i = cur - 1;
    }
    int m = (n / 2);
    vector<bool> dp(n, false);
    dp[0] = true;
    int cur = 1;
    for (auto x : res) {
      dp[0] = true;
      for (int i = m; i >= x; i--) {
        dp[i] = dp[i] | dp[i - x];
      }
    }
    if (dp[m])
      cout << "YES\n";
    else
      cout << "NO\n";
  }
}
