Added new versions of rds.r and rdssim.cpp. Also added test graphs.