Please solve the programming task below using a self-contained code snippet in a markdown code block.

A super ugly number is a positive integer whose prime factors are in the array primes.
Given an integer n and an array of integers primes, return the nth super ugly number.
The nth super ugly number is guaranteed to fit in a 32-bit signed integer.
 
Please complete the following python code precisely:
```python
class Solution:
    def nthSuperUglyNumber(self, n: int, primes: List[int]) -> int:
```