#include <bits/stdc++.h>
using namespace std;
int main() {
  int T;
  cin >> T;
  while (T--) {
    int N;
    cin >> N;
    int num[N * 2];
    int S = 0, NUM;
    int mat[N + 1];
    memset(mat, 0, sizeof mat);
    mat[0] = 1;
    for (int i = 0; i < N * 2; i++) {
      cin >> num[i];
      if (i != 0) {
        if (num[i] > NUM) {
          for (int x = N + 1; x >= S; x--) {
            if (mat[x - S] == 1) mat[x] = 1;
          }
          S = 1;
          NUM = num[i];
        } else {
          S++;
        }
      } else {
        S = 1;
        NUM = num[i];
      }
    }
    for (int x = N + 1; x >= S; x--) {
      if (mat[x - S] == 1) mat[x] = 1;
    }
    if (mat[N] == 1) {
      cout << "YES\n";
    } else {
      cout << "NO\n";
    }
  }
  return 0;
}
