C++ code amended to take arbitrary number of dispersal kernels