Added small changes to D2prime[0;r2(2:end-1);0]