Updated PSO to figure out R and C values.  Still need to modify it so it knows how many R and C values exist in the function.