#include <bits/stdc++.h>
using namespace std;
int main() {
  int T;
  cin >> T;
  while (T--) {
    int N;
    cin >> N;
    vector<int> lol;
    int streak = 0;
    int lastAdd = 1;
    for (int c = 0; c < 2 * N; c++) {
      int z;
      cin >> z;
      if (lastAdd == -1) {
        lastAdd = z;
        streak = 1;
      } else if (z < lastAdd) {
        streak++;
      } else {
        lol.push_back(streak);
        streak = 1;
        lastAdd = z;
      }
    }
    lol.push_back(streak);
    vector<bool> dp(N + 10, false);
    dp[0] = true;
    for (int c = 0; c < lol.size(); c++) {
      for (int c2 = dp.size() - 1; c2 >= 0; c2--) {
        if (dp[c2] && c2 + lol[c] < dp.size()) {
          dp[c2 + lol[c]] = true;
        }
      }
    }
    cout << (dp[N] ? "YES" : "NO") << endl;
  }
}
