#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
int m, n, l[4005], dp[2005], t;
int main() {
  std::ios::sync_with_stdio(0);
  std::cin.tie(0);
  cin >> t;
  dp[0] = 1;
  while (t--) {
    cin >> m;
    int s = 0, a = 1;
    l[0] = 0;
    for (int i = 1; i <= m + m; ++i) {
      cin >> n;
      if (n > s) {
        if (i > 1) l[++l[0]] = a;
        s = n, a = 1;
      } else
        a++;
    }
    l[++l[0]] = a;
    for (int i = 1; i <= l[0]; ++i) {
      for (int j = m; j >= l[i]; --j) {
        if (dp[j - l[i]]) dp[j] = 1;
      }
      if (dp[m]) break;
    }
    if (dp[m])
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
    for (int i = 1; i <= m; ++i) dp[i] = 0;
  }
  return 0;
}
