span class="c">!     THE BASIC ALGORITHM IS TO TAKE A GIVEN ELEMENT</span>
<span class="c">!     IN THE ORIGINAL INPUT VECTOR X,</span>
<span class="c">!     AND SCAN THE SORTED VALUES IN THE XS VECTOR</span>
<span class="c">!     UNTIL A MATCH IS FOUND;</span>
<span class="c">!     WHEN A MATCH IS FOUND, THEN THE RANK FOR THAT</span>
<span class="c">!     VALUE IN THE XS VECTOR IS DETERMINED.</span>
<span class="c">!     THAT RANK IS THEN WRITTEN INTO THAT POSITION</span>
<span class="c">!     IN THE OUTPU