#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> p(2 * n + 2), a(2 * n + 2), b(0);
    for (int i = 0; i < 2 * n; ++i) {
      cin >> p[i];
      if (i != 0 && a[i - 1] > p[i])
        a[i] = a[i - 1];
      else
        a[i] = p[i];
    }
    int k = 2 * n;
    for (int i = 2 * n - 1; i >= 0; --i) {
      if (a[i] == p[i]) {
        b.push_back(k - i);
        k = i;
      }
    }
    vector<int> m(4005, 0);
    m[0] = 1;
    for (int i = 0; i < b.size(); ++i) {
      for (int j = n; j >= 0; --j) {
        if (m[j] == 1) {
          m[j + b[i]] = 1;
        }
      }
    }
    if (m[n] == 1)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
}
