Added Rscript and Cscript for computing partitions