Need to pass user params (N, R, D) as argument to each sort routine