#include <bits/stdc++.h>
using namespace std;
template <class T>
void read(T& x) {
  T res = 0, f = 1;
  char c = getchar();
  while (!isdigit(c)) {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (isdigit(c)) {
    res = (res << 3) + (res << 1) + c - '0';
    c = getchar();
  }
  x = res * f;
}
const long long N = 4000 + 10;
int t, n, a[N], tot, b[N];
bool isok[N];
int main() {
  read(t);
  while (t--) {
    tot = 0;
    read(n);
    for (int i = 1; i <= 2 * n; i++) read(a[i]), isok[i] = 0;
    int r = 2 * n, mx = 0;
    while (r) {
      for (int i = 1; i <= r; i++)
        if (a[i] > a[mx]) mx = i;
      b[++tot] = r - mx + 1;
      r = mx - 1;
      mx = 0;
    }
    isok[0] = 1;
    for (int i = 1; i <= tot; i++) {
      for (int j = n; j >= b[i]; j--) isok[j] |= isok[j - b[i]];
    }
    printf("%s\n", isok[n] ? "YES" : "NO");
  }
  return 0;
}
