Change index ordering in rtvd related routines. Thanks go to Mariusz Mamoński for pointing that out
Merge pull request #32 from Xarthisius/rtvd_ordering

Change index ordering in rtvd related routines