Implementing parameter variation in order to call the algorithm for
different N and type