#include <bits/stdc++.h>
using namespace std;
const int64_t M1 = 998244353;
const int64_t M2 = 1000000007;
void solve() {
  int64_t n, x;
  cin >> n;
  vector<int64_t> a(n);
  int64_t y = 0;
  for (int64_t i = 0; i < n + n; i++) {
    cin >> x;
    if (x > y) {
      a.push_back(0);
      y = x;
    }
    a.back()++;
  }
  vector<int64_t> dp(n + 1, 0);
  dp[0] = 1;
  for (int64_t i : a)
    for (int64_t l = n; l >= i; l--) dp[l] |= dp[l - i];
  cout << (dp[n] ? "YES" : "NO") << "\n";
}
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int64_t t;
  cin >> t;
  while (t--) solve();
}
