Added RDMG Algorithm